
                set LOCAL_LIB=%CD%\lib\*
                set DIST_LIB=..\dist-lib\*
                set LIB=%LOCAL_LIB%;%DIST_LIB%

echo .
echo .
echo .          iCani Service Model Project
echo .          =============??============
echo .
echo .          Creating the source.list file
echo .
                dir src\*.java /s /b >source.list || GOTO QUIT

echo .
echo .          Compiling the following list:
echo .          Using library path = %LIB%
echo .
                type source.list
echo .
echo .          Compilation result:
echo .
                javac -cp "%LIB%" -d bin @source.list || GOTO QUIT

                
echo .
echo .          Building the jar file(s):
echo .
                cd bin
                
                jar cmf0 ..\resources\m.txt ..\dist\icani-servicemodel.jar .\ || GOTO QUIT
                
                cd ..
                
echo .
echo .          Copying the jar file(s) to the dist-lib:
echo .
                copy dist\icani-servicemodel.jar ..\dist-lib || GOTO QUIT
echo .
echo .


:QUIT
